using System;
using UnityEngine;
using UnityEngine.UI;

namespace CGF
{
    //该脚本自动生成或覆盖，不可编辑
    public partial class PanelWalletDetail
    {   
		public CButton BtnBack;
		public Image Table;
		public CButton Switch;
		public SwitchGroup Menu;
		public ScrollView ScrollView;
		public Image Jiantou;
		public CButton FromDate;
		public CButton ToDate;

        public Reference reference { get; private set; }
        public Action onProsBindCompleted;
        
        public void BindProperties(Transform transform)
        {   
            reference = transform.GetComponent<Reference>();
            if(!reference)return;
            int nodeIndex = 0;
			BtnBack = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<CButton>();
			Table = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<Image>();
			Switch = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<CButton>();
			Menu = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<SwitchGroup>();
			ScrollView = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<ScrollView>();
			Jiantou = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<Image>();
			FromDate = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<CButton>();
			ToDate = (reference.nodes[nodeIndex++].obj as GameObject).GetComponent<CButton>();
            onProsBindCompleted?.Invoke();
        }
        
        public void SetProsBindCompletedAction(Action action)
        {
            onProsBindCompleted = action;
        }
    }
}
